package com.nicole.config;

import org.springframework.boot.actuate.web.exchanges.InMemoryHttpExchangeRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class HttpRecordConfig {

    @Bean
    InMemoryHttpExchangeRepository httpExchangeRepository(){
        InMemoryHttpExchangeRepository repository = new InMemoryHttpExchangeRepository();
        repository.setCapacity(20);
        repository.setReverse(true);
        return repository;
    }
}
